#ifndef __CUDA_HELPERS_H
#define __CUDA_HELPERS_H

#include <stdio.h>
#include <stdlib.h>
#include <string>

#include "constants.h"

using std::string;

float* AllocateAndCopy(float* h, int size);
float* Allocate(int size);
void Free(float* d);

void SaveAsImage(string filename, float* d, int width, int height, float offset, float scale);

#endif
